<!DOCTYPE html>
<html>
 <head>
   <meta name="layout" content="main"/>
 </head>
 <body>
   <div>
     <ul class="nav">
       <li><a href="${createLink(uri:'/')}">HOME</a> </li>
       <li><g:link class="list" action="list" >Lista de Categorías</g:link></li>
       <li><g:link class="create" action="create">Crear Categoría</g:link></li>
     </ul>
   </div>
   <div>
     <h2>Editar Categoría</h2>
     <g:if test="${flash.message}">
      <div class="message">flash.message</div>
     </g:if>
     <g:hasErrors bean="${categoriaInstance}">
       <ul class="errors">
         <g:eachError bean="${categoriaInstance}" var="error">
           <li>Error</li>
         </g:eachError>
       </ul>
     </g:hasErrors>
     <g:form method="post">
       <g:hiddenField name="id" value="${categoriaInstance?.id}"/>
       <g:hiddenField name="version" value="${categoriaInstance?.version}"/>
       <fieldset class="form">
         <g:render template="form"/>
       </fieldset>
       <fieldset class="buttons">
         <g:actionSubmit class="save" action="update" value="Actualizar"/>
         <g:actionSubmit class="delete" action="delete" value="Borrar" onclick="return confirm('Are you sure?')}');" />         
       </fieldset>
     </g:form>
   </div>
 </body>
</html>